fix:add indexdb storage#1339
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1339 +/- ##
=======================================
Coverage 74.93% 74.93%
=======================================
Files 184 184
Lines 4513 4513
Branches 1105 1105
=======================================
Hits 3382 3382
Misses 1131 1131 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
559c497 to
d0b35c4
Compare
| }, | ||
| } as any; | ||
| return __storage; | ||
| }); |
There was a problem hiding this comment.
i'm a little confused. Why do we need fake-indexeddb/auto if we're just mocking the adapter that wraps it?
There was a problem hiding this comment.
thats true, fake-indexeddb/auto is no longer needed. This mock came after
|



Explanation
Add simple storage wrapper using indexeddb for web platforms and dapps.
This same new storage will be used for dappClient and mwp.
Also improved the way we are mocking each environment now we don't need to duplicate the code but call a runTestInPlatform function and the rest is done for you, this loads global variables for nodejs, web and react-native platforms and enables us to test real scenarios without directly doing any native work
Checklist